﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace davejk.Minecraft.ServerWrapper
{
    public partial class ServerSettingsWindow : Form
    {
        public ServerSettingsWindow()
        {
            InitializeComponent();

            MaxPlayers.Value = Int32.Parse(Utils.ConfigHelper.GetNamedProperty("max-players"));
            ServerIp.Text = Utils.ConfigHelper.GetNamedProperty("server-ip");
            ServerPort.Text = Utils.ConfigHelper.GetNamedProperty("server-port");
            //TODO: get value of checkbox
        }

        //TODO: saving settings
    }
}
